package com.pro.common.modules.service.dependencies.config;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SnowflakeConfig {
    
    @Bean
    public Snowflake snowflake() {
        // 这里可以根据实际情况从配置文件中读取workerId和datacenterId
        return IdUtil.getSnowflake(1, 1);
    }
}